home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir39
/
borfix.zip
/
TESTEMS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-08-28
|
656b
|
23 lines
uses ems,crt;
var
x,y,z,a,b,c,frame,pages,upages,v,f,error:word;
base:string;
ver:string[3];
begin
clrscr;
if not emm_driver=1 then writeln('driver not instlled');
error:=version(v,f);
ver:=char(v+48)+'.'+char(f+48);
writeln('EMM Version ',ver,' installed');
error:=unalloc_p(pages,upages);
writeln(upages,' pages are unallocated and and there are ',pages,' total pages');
error:=get_frame(frame);
base:=hex_string(frame);
writeln('The base page address is ',base);
a:=1;
c:=34;
error:=alloc_all;
if error<>0 then writeln('problem allocating memory');
error:=dealloc_all;
if error<>0 then writeln('problem deallocating memory');
end.